package demo;
public class Test {
    public static void Running(IRunning running){
        running.run();

    }
    public static void Flying(IFlying flying){
        flying.fly();
    }
    public static void main(String[] args) {
        Cat cat=new Cat("阿猫");
        Running(cat);
        Duck duck=new Duck("大黄");
        Flying(duck);

    }
}
